From 69d08d3e0f5615e3e3c83a66698af10896cfeb90 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 19 Mar 2022 14:34:56 -0600 Subject: [PATCH] use cmake to run clazy. this avoids warnings in Qt headers. we also build both the CLI and GUI. --- tools/build_extra_tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/build_extra_tests.sh b/tools/build_extra_tests.sh index 05ad8f5c1..550cf93ea 100755 --- a/tools/build_extra_tests.sh +++ b/tools/build_extra_tests.sh @@ -28,10 +28,13 @@ make clean make -j 3 make check +# run clazy on both gpsbabel and gpsbabelfe. +# unlike qmake, cmake uses system includes for Qt which quiets warnings +# from the Qt headers. export CLAZY_CHECKS=level0,level1,no-non-pod-global-static,no-qstring-ref -qmake -spec linux-clang "CONFIG+=debug" "QMAKE_CXX=clazy" -make clean -make -j 3 2>&1 | tee clazy.log +cmake . -DCMAKE_CXX_COMPILER=clazy -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" +cmake --build . --target clean +cmake --build . 2>&1 | tee clazy.log if grep -- '-Wclazy' clazy.log; then exit 1 else -- 2.30.2